package digitmodell;

public class OrGate extends Gate {
	public OrGate(int id) {
		this.id = id;
		this.value = false;
	}

	protected void setInput(Wire[] InputWires) {
		this.InputWire = InputWires;
	}

	public void setValue() {
		
		for (int i = 0; i < InputWire.length; i++) {
			if (InputWire[i].getValue() == true) {
				this.value = true;
				
				return;
			}
		}
		this.value = false;

	}
}
